import type {ResponseInter} from "@/api/commonInterFace.ts";

export interface roleAllInter {
    id?: number,
    create_time?: string,
    update_time?: string,
    roleName: string,
    remark?: string
}

export interface roleResponseInter extends ResponseInter {
    data: {
        records: roleAllInter[],
        total: number,
        size: number,
        current: number,
        orders: [],
        optimizeCountSql: boolean,
        hitCount: boolean,
        countId: null,
        maxLimit: null,
        searchCount: number,
        pages: number
    }
}

export interface permissionInter {
    id: number,
    create_time?: string,
    update_time?: string,
    pid: number,
    name: string,
    code: string,
    toCode: string,
    type: number,
    status: null,
    level: number,
    children?: permissionInter[],
    select: boolean
}
// 权限类型
export interface permissionAllResponseInter extends ResponseInter {
    data: permissionInter[]
}
